<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<jsp:useBean id="ss" class="beans.DAOCLassBasket" scope="page"></jsp:useBean>
<title>Catalogue</title>

</head>
<body>
<body>
	<H1>Catalogue page</H1>

	<form action="CatalogueServlet" method="GET" name="form">


		<table>
			<tr>
				<th>ID</th>
				<th>Description</th>
				<th>Weight</th>
				<th>Price</th>
				<th>Basket</th>
			</tr>
			<%
			for (String newItem : ss.getCatalogue()) {
				
				

				String temp[] = newItem.split("/");%>


			<tr>
				<td></td>
				<td><%=temp[1]%></td>
				<td><%=temp[0]%></td>
				<td><%=temp[2]%></td>
				<td><%=temp[3]%></td>
				<td><input type="checkbox" name="product" value="<%=temp[1]%>"></td>

			</tr>

			<% } %>

		</table>
		<input type="submit" value="Submit!" >
	</form>
</body>
</html>